package com.douya.pangu.application.sys.feign.impl;

import com.douya.common.pojo.dto.PagerDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.douya.pangu.business.api.feign.BusinessHttpLogFeign;
import com.douya.pangu.business.api.pojo.dto.BusinessHttpLogDTO;
import com.douya.pangu.business.api.pojo.vo.BusinessHttpLogVO;
import com.douya.pangu.application.sys.service.BusinessHttpLogService;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：http请求日志内部接口实现
 *
 * @author hcy
 * @date 2024/04/01
 */
@Slf4j
@RestController
public class BusinessHttpLogFeignImpl implements BusinessHttpLogFeign {

    @Resource
    BusinessHttpLogService mBusinessHttpLogService;

    @Override
    public IPage<BusinessHttpLogVO> page(PagerDTO pagerDTO) {
        return mBusinessHttpLogService.page(pagerDTO);
    }

    @Override
    public BusinessHttpLogVO findById(Long id) {
        return mBusinessHttpLogService.findById(id);
    }

    @Override
    public void insert(BusinessHttpLogDTO businessHttpLogDTO) {
        mBusinessHttpLogService.insert(businessHttpLogDTO);
    }

    @Override
    public void delete(Long id) {
        mBusinessHttpLogService.delete(id);
    }
}
